#ifndef HPLCINJECTPROGRAMPAGE_H
#define HPLCINJECTPROGRAMPAGE_H

#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QLineEdit>
#include <QGroupBox>

class HplcInjectProgramPage : public QWidget
{
    Q_OBJECT
public:
    explicit HplcInjectProgramPage(QWidget *parent = nullptr);

    void setParam(double flow, double time);
    void setRunning(bool isRunning);

signals:
    void flowChanged(double flow);
    void timeChanged(double time);
    void requestStart();

private:
    QGroupBox   *m_gb;
    QLabel      *m_lbFlow;
    QLineEdit   *m_leFlow;
    QLabel      *m_lbTime;
    QLineEdit   *m_leTime;
    QPushButton *m_pbStart;
    QPushButton *m_pbReturn;

    double      m_flow;
    double      m_time;
};

#endif // HPLCINJECTPROGRAMPAGE_H
